home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / util / Mac F2C 1.3.sit / Mac F2C 1.3 / F2C for MPW / F2C.Help < prev    next >
Text File  |  1995-11-18  |  5KB  |  80 lines

  1. F2C # F2C FORTRAN to C translator for MPW.
  2. F2C [-q] [[f2c_option…] filename…]
  3.       -q          # quit Mac F2C after translating the file(s)
  4.       -C          # Compile code to check that subscripts are within
  5.                   # declared array bounds.
  6.       -I2         # Render INTEGER and LOGICAL as short, INTEGER*4 as long
  7.                   # int.  Assume the default libF77 and libI77:  allow only
  8.                   # INTEGER*4 (and no LOGICAL) variables in INQUIREs.
  9.                   # Option '-I4' confirms the default rendering of INTEGER
  10.                   # as long int.
  11.       -onetrip    # Compile DO loops that are performed at least once if
  12.                   # reached.  (FORTRAN 77 DO loops are not performed at all
  13.                   # if the upper limit is smaller than the lower limit.)
  14.       -U          # Honor the case of variable and external names.  FORTRAN
  15.                   # keywords must be in lower case.
  16.       -u          # Make the default type of a variable `undefined' rather
  17.                   # than using the default FORTRAN rules.
  18.       -w          # Suppress all warning messages, or, if the option is
  19.                   # '-w66', just FORTRAN 66 compatibility warnings.
  20.       -A          # Produce ANSI C.  Default is old-style C.
  21.       -a          # Make local variables automatic rather than static
  22.                   # unless they appear in a DATA, EQUIVALENCE, NAMELIST, or
  23.                   # SAVE statement.
  24.       -C++        # Output C++ code.
  25.       -c          # Include original FORTRAN source as comments.
  26.       -E          # Declare uninitialized COMMON to be Extern (overridably
  27.                   # defined in f2c.h as extern).
  28.       -ec         # Place uninitialized COMMON blocks in separate files:
  29.                   # COMMON /ABC/ appears in file abc_com.c. 
  30.       -ext        # Complain about f77(1) extensions.
  31.       -f          # Assume free-format input: accept text after column 72
  32.                   # and do not pad fixed-format lines shorter than 72 char-
  33.                   # acters with blanks.
  34.       -72         # Treat text appearing after column 72 as an error.
  35.       -g          # Include original FORTRAN line numbers in #line lines.
  36.       -h          # Emulate FORTRAN 66's treatment of Hollerith: try to
  37.                   # align character strings on word (or, if the option is
  38.                   # '-hd', on double-word) boundaries.
  39.       -i2         # Similar to -I2, but assume a modified libF77 and libI77
  40.                   # (compiled with -Df2c_i2), so INTEGER and LOGICAL vari-
  41.                   # ables may be assigned by INQUIRE and array lengths are
  42.                   # stored in short ints.
  43.       -kr         # Use temporary values to enforce FORTRAN expression
  44.                   # evaluation where K&R (first edition) parenthesization
  45.                   # rules allow rearrangement.  If the option is '-krd',
  46.                   # use double precision temporaries even for single-
  47.                   # precision operands.
  48.       -P          # Write a file.P of ANSI (or C++) prototypes for defini-
  49.                   # tions in each input file.f or file.F.  When reading
  50.                   # FORTRAN from standard input, write prototypes at the
  51.                   # beginning of standard output.  Option -Ps implies -P
  52.                   # and gives exit status 4 if rerunning f2c may change
  53.                   # prototypes or declarations.
  54.       -p          # Supply preprocessor definitions to make common-block
  55.                   # members look like local variables.
  56.       -R          # Do not promote REAL functions and operations to DOUBLE
  57.                   # PRECISION.  Option '-!R' confirms the default, which
  58.                   # imitates f77.
  59.       -r          # Cast values of REAL functions (including intrinsics) to
  60.                   # REAL.
  61.       -r8         # Promote REAL to DOUBLE PRECISION, COMPLEX to DOUBLE
  62.                   # COMPLEX.
  63.       -s          # Preserve multidimensional subscripts.  Suppressed by
  64.                   # option '-C'.
  65.       -w8         # Suppress warnings when COMMON or EQUIVALENCE forces
  66.                   # odd-word alignment of doubles.
  67.       -Wn         # Assume n characters/word (default 4) when initializing
  68.                   # numeric variables with character data.
  69.       -z          # Do not implicitly recognize DOUBLE COMPLEX.
  70.       -!bs        # Do not recognize backslash escapes (\", \', \0, \\, \b,
  71.                   # \f, \n, \r, \t, \v) in character strings.
  72.       -!c         # Inhibit C output, but produce -P output.
  73.       -!I         # Reject include statements.
  74.       -!i8        # Disallow INTEGER*8.
  75.       -!it        # Don't infer types of untyped EXTERNAL procedures from
  76.                   # use as parameters to previously defined or prototyped
  77.                   # procedures.
  78.       -!P         # Do not attempt to infer ANSI or C++ prototypes from
  79.                   # usage.
  80. -